package com.atguigu.yygh.cmn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
// 扫描"com.atguigu"不仅在当前模块com.atguigu下加了注解的类 同时当前模块所依赖的其他模块也能扫描到
@ComponentScan(basePackages = {"com.atguigu"})
// 扫描持久化层中的mapper接口
@MapperScan("com.atguigu.yygh.cmn.mapper")
public class ServiceCmnApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceCmnApplication.class, args);
    }
}